package com.mfs.common.utills;

import java.io.*;
import java.util.Properties;

/**
 * Properties 工具
 * @author mfs
 * @date 2022/05/15
 * */
public class PropertiesUtil {
    public static Properties loadProperties(String path) throws IOException {
        File file = new File(path);
        if (!file.exists()) {
            throw new FileNotFoundException(path);
        }
        Properties properties = new Properties();
        properties.load(new FileInputStream(file));
        return properties;
    }
}
